/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2025. All rights reserved.
 * Description: Hmfs-tools ssa
 */

#ifndef HMFS_COMPARE_SSA_H
#define HMFS_COMPARE_SSA_H

#include <memory>
#include <string>
#include <sys/types.h>

#include "compare_data.h"
#include "hmfs_fs.h"

namespace OHOS {
namespace Hmfs {
class CompareSsa {
public:
    CompareSsa(FsData &srcInfo, FsData &dstInfo) : srcInfo_(srcInfo), dstInfo_(dstInfo)
    {
    }
    ~CompareSsa() = default;

    int32_t CompareSsaArea();

private:
    int32_t ReadSsaArea(FsData &fsInfo);

    FsData& srcInfo_;
    FsData& dstInfo_;
    uint64_t ssaBufferSize_ = 0;
};
} // namespace Hmfs
} // namespace OHOS
#endif
